﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlaceOrder_Core.PlaceOrderModels;

[Table("user_trade")]
public partial class UserTradeDataBase
{

    [Column("user_trade_id")]
    [Key]
    public long UserTradeId { get; set; }

    [Column("trade_time")]
    public DateTime? TradeTime { get; set; }

    [Column("direction")]
    public string Direction { get; set; } = null!;

    [Column("tscode")]
    public string Tscode { get; set; } = null!;

    [Column("price")]
    public decimal Price { get; set; }

    [Column("volume")]
    public string Volume { get; set; } = null!;

    [Column("delivery_time")]
    public DateTime DeliveryTime { get; set; }

    [Column("create_by")]
    public long CreateBy { get; set; }
    [Column("create_time")]
    public DateTime CreateTime { get; set; }

    [Column("update_by")]
    public long? UpdateBy { get; set; }

    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }

    [Column("remark")]
    public string? Remark { get; set; }

    [Column("delivery_speed")]
    public string? DeliverySpeed { get; set; }

    [Column("user_id")]
    public long UserId { get; set; }

    [Column("status")]
    public int? Status { get; set; }

    [Column("forward")]
    public bool? Forward { get; set; }

    [Column("trade_num")]
    public string? TradeNum { get; set; }

    [Column("parent_id")]
    public long? ParentId { get; set; }
    [Column("rest_volume")]
    public string? RestVolume { get; set; }
    [Column("version")]
    public int? Version { get; set; }
    [Column("relative_num")]
    public string? RelativeNum { get; set; }
    [Column("source_num")]
    public string? SourceNum { get; set; }
    [Column("finish_volume")]
    public string? FinishVolume { get; set; }

    [Column("worst_price")]
    public decimal? WorstPrice { get; set; }
    [Column("is_youxian")]
    public int? IsYouxian { get; set; }

    [Column("youxian_level")]
    public int? YouxianLevel { get; set; }

    [Column("order_type")]
    public string? OrderType { get; set; }

    [Column("qiangping_id")]
    public string? QiangpingId { get; set; }

    [Column("broker_id")]
    public short? BrokerId { get; set; }

    [Column("channel_id")]
    public string? ChannelId { get; set; }
}
